﻿<sdk:Page
x:Class="AdventureWorksLT.Views.Customers.Controls.CustomerControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Name="CustomersControlUI"
xmlns:navCtl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
Background="AliceBlue"
xmlns:E2C="clr-namespace:AdventureWorksLT.Core"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
xmlns:viewModels="clr-namespace:AdventureWorksLT.Views.Customers.ViewModels" 
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
xmlns:appControls="clr-namespace:AdventureWorksLT.Controls" 
>
    <!--15 Fields -->
    <navCtl:Page.Resources>
        <viewModels:CustomersViewModel x:Key="CustomersViewModel" ></viewModels:CustomersViewModel>
    </navCtl:Page.Resources>
    <appControls:BusyIndicator x:Name="BusyIndicator" BusyContent="Loading Customer data...." DataContext="{Binding Source={StaticResource CustomersViewModel}}" IsBusy="{Binding IsBusy}">
        <Grid x:Name="LayoutRoot"  DataContext="{Binding Source={StaticResource CustomersViewModel}}">
            <Border BorderBrush="#FF505050" BorderThickness="2" CornerRadius="3">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#ED71A5D8" Offset="0.8" />
                        <GradientStop Color="AliceBlue" Offset="1.09" />
                    </LinearGradientBrush>
                </Border.Background>
                <ScrollViewer  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
                    <Grid HorizontalAlignment="Left" x:Name="CustomerGrid" VerticalAlignment="Top" >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="32" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="30" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="400*" />
                        </Grid.ColumnDefinitions>
                        <!-- uno -->
                        <StackPanel Grid.Column="1" Grid.Row="1" Orientation="vertical"  >
                            <!-- dos -->
                            <TextBlock Height="30" ToolTipService.ToolTip="Id" ToolTipService.Placement="Mouse" Text="Id:"  HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Name Style" ToolTipService.Placement="Mouse" Text="Name Style:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Title" ToolTipService.Placement="Mouse" Text="Title:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="First Name" ToolTipService.Placement="Mouse" Text="First Name:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Middle Name" ToolTipService.Placement="Mouse" Text="Middle Name:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Last Name" ToolTipService.Placement="Mouse" Text="Last Name:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Suffix" ToolTipService.Placement="Mouse" Text="Suffix:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Company Name" ToolTipService.Placement="Mouse" Text="Company Name:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Sales Person" ToolTipService.Placement="Mouse" Text="Sales Person:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Email Address" ToolTipService.Placement="Mouse" Text="Email Address:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Phone" ToolTipService.Placement="Mouse" Text="Phone:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Password Hash" ToolTipService.Placement="Mouse" Text="Password Hash:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Password Salt" ToolTipService.Placement="Mouse" Text="Password Salt:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="30" ToolTipService.ToolTip="Rowguid" ToolTipService.Placement="Mouse" Text="Rowguid:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                            <TextBlock Height="32" ToolTipService.ToolTip="Modified Date" ToolTipService.Placement="Mouse" Text="Modified Date:"   HorizontalAlignment="Left" Margin="1" VerticalAlignment="Center" Foreground="#FF7635FC"  Width="180" TextWrapping="Wrap" FontFamily="Verdana" FontSize="10.667" TextTrimming="None" />
                        </StackPanel>
                        <StackPanel Grid.Column="2" Grid.Row="1" Orientation="vertical"  >
                            <!-- tres -->
                            <TextBlock  Height="30" HorizontalAlignment="Left" Margin="1" Text="{Binding CurrentCustomers.CustomerID, Mode=OneWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" FontWeight="Bold" />
                            <CheckBox ToolTipService.ToolTip="Name Style" ToolTipService.Placement="Mouse" Content=""  Height="16" HorizontalAlignment="Left" Margin="8"  IsChecked="{Binding CurrentCustomers.NameStyle, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="70" FontSize="15" HorizontalContentAlignment="Left" />
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Title" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.Title, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="8"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="First Name" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.FirstName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="50"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Middle Name" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.MiddleName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="50"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Last Name" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.LastName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="50"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Suffix" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.Suffix, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="10"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Company Name" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.CompanyName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="128"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Sales Person" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.SalesPerson, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="256"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Email Address" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.EmailAddress, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="50"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Phone" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.Phone, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="25"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Password Hash" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.PasswordHash, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="128"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Password Salt" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.PasswordSalt, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left"  MaxLength="10"/>
                            <TextBox Style="{StaticResource JetPackTextBox}" ToolTipService.ToolTip="Rowguid" ToolTipService.Placement="Mouse" Height="30" HorizontalAlignment="Left" Margin="1"  Text="{Binding CurrentCustomers.rowguid, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left" />
                            <sdk:DatePicker Style="{StaticResource JetPackDatePicker}" ToolTipService.ToolTip="Modified Date" ToolTipService.Placement="Mouse"  Height="30" HorizontalAlignment="Left" Margin="1"  SelectedDate="{Binding CurrentCustomers.ModifiedDate, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="180" FontSize="15" HorizontalContentAlignment="Left" />
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal"  Grid.ColumnSpan="5">
                            <Button   x:Name="printButton" Content="Print" Margin="0,10,5,5" Width="100"  Height="30" HorizontalAlignment="Left" Command="{Binding PrintCommand}"  />
                            <Button  x:Name="addButton" Content="Add New" Margin="5,10,5,5" Width="100"  Height="30" HorizontalAlignment="Left" Command="{Binding AddNewCommand}" />
                            <Button   x:Name="saveButton" Content="Save" Margin="5,10,5,5"  Width="100"  Height="30" HorizontalAlignment="Left" Command="{Binding SaveCommand}"  />
                            <Button   x:Name="deleteButton" Content="Delete" Margin="5,10,5,5" Width="100"  Height="30" HorizontalAlignment="Left" Command="{Binding DeleteCommand}" />
                        </StackPanel>
                        <StackPanel Grid.Column="4" Grid.Row="1" Orientation="vertical"  >
                            <!-- cuatro -->
                            <!-- 555555555 -->
                        </StackPanel>
                        <!-- 1 -->
                    </Grid>
                </ScrollViewer>
            </Border>
        </Grid>
    </appControls:BusyIndicator>
</sdk:Page>
<!--
CustomerAddress
SalesOrderHeader

Now Parent Rels 


3
-->